package com.tuanzi.loan.web.lazy.statistics;

import com.tuanzi.loan.business.service.statistics.WholeProcessInterUvStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.WholeProcessInterUvStatSearchRequest;
import com.tuanzi.loan.vo.response.statistics.WholeProcessInterUvStatSearchResponse;
import org.springframework.data.domain.Page;

public class WholeProcessInterUvStatLazyModel extends BaseLazyDataModel<WholeProcessInterUvStatSearchRequest, WholeProcessInterUvStatSearchResponse> {

    private WholeProcessInterUvStatService service = SpringContextHolder.getBean(WholeProcessInterUvStatService.class);

    public WholeProcessInterUvStatLazyModel(WholeProcessInterUvStatSearchRequest wholeProcessInterUvStatSearchRequest) {
        super(wholeProcessInterUvStatSearchRequest);
    }

    @Override
    protected Page<WholeProcessInterUvStatSearchResponse> doLoad(PageSearcher<WholeProcessInterUvStatSearchRequest> pageSearcher) {
        return service.list(pageSearcher);
    }
}
